package com.aiti.lulian.service;

import com.aiti.base.core.base.service.BaseService;
import com.aiti.base.core.utils.message.Message;
import com.aiti.lulian.entity.LuLianSupplierInquiryOrder;
import com.aiti.lulian.entity.LuLianSupplierInquiryOrderRequest;
import com.aiti.lulian.entity.response.inquiryorder.BuyerBackGroupListResp;
import com.aiti.lulian.vo.XunJiaRepsonse;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;
import java.util.Map;

/**
 * @ClassName ILuLianSupplierInquiryOrderService
 * @Description
 * @Author diaozhende
 * @Date 2024/6/12 0012 15:21
 */
public interface ILuLianSupplierInquiryOrderService extends BaseService<LuLianSupplierInquiryOrder> {


    /**
     * 多参数查询
     *
     * @param supplierInquiryOrder 查询参数
     * @return java.util.List<com.aiti.lulian.entity.LuLianSupplierInquiryOrder>
     * @date 2024/6/12 0012 15:30
     * @author diaozhende
     */
    List<LuLianSupplierInquiryOrder> queryByParams(LuLianSupplierInquiryOrder supplierInquiryOrder);


    /**
     * 分页查询
     *
     * @param page                 当前页
     * @param pageSize             每页显示条数
     * @param supplierInquiryOrder 查询参数
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.aiti.lulian.entity.LuLianSupplierInquiryOrder>
     * @date 2024/6/12 0012 15:33
     * @author diaozhende
     */
    Page<LuLianSupplierInquiryOrder> queryPage(int page, int pageSize, LuLianSupplierInquiryOrder supplierInquiryOrder);


    /**
     * 保存
     *
     * @param supplierInquiryOrder 保存数据
     * @return void
     * @date 2024/6/13 0013 9:01
     * @author diaozhende
     */
    int saveData(LuLianSupplierInquiryOrder supplierInquiryOrder);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     * @date 2024/06/19
     * @author yangfenzhen
     */
    LuLianSupplierInquiryOrderRequest queryById(String id);

    Map<String, Object> queryCount(String userId);

    /**
     * 查询招募单回显
     *
     * @param recruitId 招募单Id
     * @param userId    用户Id
     */
    Message queryShowSupplierInquiryOrderRecruit(String recruitId, String userId,String type);

    /**
     * 询价
     *
     * @param userId
     */
    List<BuyerBackGroupListResp> querySellSupplierInquiryOrderRecruit(String userId,Page page,String type);
    int updateDataById(LuLianSupplierInquiryOrder supplierInquiryOrder);

    LuLianSupplierInquiryOrder queryByBaseId(String baseId);

    List<XunJiaRepsonse> queryBuyerInquiryOrderRecruit(String userId, Page page);

    public LuLianSupplierInquiryOrder queryZmById(String id);

    /**
     * 小程序端查询进行中和已截止的数据
     * @param userId
     * @return
     */
    Message queryStataus(String userId);
}